package com.ruoyi.testmanagement.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 当前cab列表
 * 
 * @author Bruce
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cab extends BaseEntity
{
    /** cab编号 */
    @Excel(name = "cab序号", cellType = Excel.ColumnType.NUMERIC)
    private Long cabId;

    /** cab名称 */
    @Excel(name = "cab名称", cellType = Excel.ColumnType.STRING)
    private String cabName;

    /** cab提交人 */
    @Excel(name = "cab提交人", cellType = Excel.ColumnType.STRING)
    private String submitter;

    /** cab状态 */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** cab description */
    @Excel(name = "cab描述", cellType = Excel.ColumnType.STRING)
    private String description;

    /** del flag */
    @Excel(name = "cab删除标记", cellType = Excel.ColumnType.NUMERIC)
    private int delFlag;

    public Cab(Long cabId,String cabName, String status){
        this.cabId = cabId;
        this.cabName = cabName;
        this.status = status;
    }

}
